diff -Naur sdl-jstest-20160824git/CMakeLists.txt sdl-jstest-20160824git.patched/CMakeLists.txt
--- sdl-jstest-20160824git/CMakeLists.txt	2016-10-17 15:36:01.184523186 -0400
+++ sdl-jstest-20160824git.patched/CMakeLists.txt	2016-10-17 15:44:48.393556770 -0400
@@ -23,7 +23,6 @@
 find_package(SDL REQUIRED)
 
 find_package(PkgConfig REQUIRED)
-pkg_search_module(SDL2 REQUIRED sdl2)
 
 find_program(DOCBOOK2XMAN docbook2x-man)
 if(DOCBOOK2XMAN)
@@ -44,12 +43,6 @@
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
 endif()
 
-link_directories(${SDL2_LIBRARY_DIRS})
-add_executable(sdl2-jstest sdl2-jstest.c)
-target_link_libraries(sdl2-jstest ${SDL2_LIBRARIES} ${CURSES_LIBRARIES})
-target_include_directories(sdl2-jstest PUBLIC ${SDL2_INCLUDE_DIRS} ${CURSES_INCLUDE_DIR})
-target_compile_definitions(sdl2-jstest PUBLIC ${SDL2_CFLAGS_OTHER})
-
 add_executable(sdl-jstest sdl-jstest.c)
 target_link_libraries(sdl-jstest ${SDL_LIBRARY} ${CURSES_LIBRARIES})
 target_include_directories(sdl-jstest PUBLIC ${SDL_INCLUDE_DIR} ${CURSES_INCLUDE_DIR})
@@ -60,23 +53,17 @@
     COMMAND ${DOCBOOK2XMAN} ${CMAKE_CURRENT_SOURCE_DIR}/sdl-jstest.xml
     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sdl-jstest.xml
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
-
-  add_custom_command(
-    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sdl2-jstest.1
-    COMMAND ${DOCBOOK2XMAN} ${CMAKE_CURRENT_SOURCE_DIR}/sdl2-jstest.xml
-    DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sdl2-jstest.xml
-    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
 else()
-  file(COPY sdl-jstest.1 sdl2-jstest.1
+  file(COPY sdl-jstest.1
     DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
 endif()
 
-add_custom_target(doc ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/sdl-jstest.1 ${CMAKE_CURRENT_BINARY_DIR}/sdl2-jstest.1)
+add_custom_target(doc ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/sdl-jstest.1)
 
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sdl-jstest.1 ${CMAKE_CURRENT_BINARY_DIR}/sdl2-jstest.1
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sdl-jstest.1
   DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
 
-install(TARGETS sdl-jstest sdl2-jstest
+install(TARGETS sdl-jstest
   RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
 
 # EOF #
